package com.freak.wanandroid.model.login.register;

import com.freak.httpmanager.callback.SubscriberCallBack;
import com.freak.wanandroid.base.repository.BaseRepository;
import com.freak.wanandroid.bean.LoginBean;
import com.freak.wanandroid.net.HttpResultFunc;

import io.reactivex.rxjava3.core.Observable;


/**
 * Created by 74099 on 2018/8/29.
 */

public class RegisterRepository extends BaseRepository {
    public void doRegister(String username, String password, String repassword,SubscriberCallBack<LoginBean> observer) {
        Observable observable = mApiService.doRegister(username, password, repassword).map(new HttpResultFunc<LoginBean>());
        addSubscription(observable, observer);
    }
}
